package com.lap.auth.application.authorization.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Date;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "用户基本信息数据传输返回")
public class UserInfoDto {

  @Schema(description = "用户ID")
  private Integer userId;

  @Schema(description = "用户名")
  private String userName;

  @Schema(description = "用户头像")
  private String photo;

  @Schema(description = "登录时间")
  private Date time;

  @Schema(description = "角色")
  private List<RoleDto> roles;

  @Schema(description = "功能权限")
  private List<String> authBtnList;

  @Data
  @Schema(description = "角色名称")
  public static class RoleDto {
    private String name;
  }
}
